package com.yaodian100.ec.outlet.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity(name = "outlet")
@Table(name = "EC_OUTLET_CAMPAIGN")
public class Outlet extends BaseEntity {
	
	private static final long serialVersionUID = -4036620706206587675L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_outlet_campaign")
	@SequenceGenerator(name = "seq_ec_outlet_campaign", sequenceName = "SEQ_EC_OUTLET_CAMPAIGN")
	@Column(name = "ID")
	private Long id;
	
	/**
	 * 活动名称
	 */
	@Column(name = "CAMPAIGN_NAME", length = 100, nullable = false)
	private String campaignName;
	
	/**
	 * 活动开始时间
	 */
	@Column(name = "START_DATE", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date startDate;
	
	/**
	 * 活动结束时间
	 */
	@Column(name = "END_DATE", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date endDate;
	
	/**
	 * 主页广告名称
	 */
	@Column(name = "MAIN_IMG_NAME", length = 50, nullable = false)
	private String mainImgName;
	
	/**
	 * 主页广告资料夹
	 */
	@Column(name = "MAIN_IMG_FOLDER", length = 10, nullable = false)
	private String mainImgFolder;
	
	/**
	 * 主页广告连结
	 */
	@Column(name = "MAIN_IMG_LINK", length = 50)
	private String mainImgLink;
	
	/**
	 * 主页广告代码
	 */
	@Column(name = "MAIN_AD_WORD", length = 20)
	private String mainAdWord;
	
	/**
	 * 内页广告名称
	 */
	@Column(name = "INSIDE_IMG_NAME", length = 50, nullable = false)
	private String insideImgName;
	
	/**
	 * 内页广告资料夹
	 */
	@Column(name = "INSIDE_IMG_FOLDER", length = 10, nullable = false)
	private String insideImgFolder;
	
	/**
	 * 内页广告连结
	 */
	@Column(name = "INSIDE_IMG_LINK", length = 50)
	private String insideImgLink;
	
	/**
	 * 内页广告代码
	 */
	@Column(name = "INSIDE_AD_WORD", length = 20)
	private String insideAdWord;
	
	/**
	 * 品牌代码
	 */
	@Column(name = "BRAND_ID", length = 8, nullable = false)
	private String brandId;
	
	/**
	 * 品牌类别代码
	 */
	@Column(name = "BRAND_CATEGORY_ID", nullable = false)
	private Long brandCategoryId;
	
	/**
	 * 活动类型
	 */
	@Column(name = "CAMPAIGN_TYPE", length = 20, nullable = false)
	private String campaignType;
	
	/**
	 * 删除标记 , Y: 是； N: 否
	 */
	@Column(name = "IS_DELETE", nullable = false)
	private boolean delete = false;
	
	/**
	 * 该活动是否启用, Y: 是； N: 否
	 */
	@Column(name = "IS_ENABLE", nullable = false)
	private boolean enable = false;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCampaignName() {
		return campaignName;
	}

	public void setCampaignName(String campaignName) {
		this.campaignName = campaignName;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getMainImgName() {
		return mainImgName;
	}

	public void setMainImgName(String mainImgName) {
		this.mainImgName = mainImgName;
	}

	public String getMainImgFolder() {
		return mainImgFolder;
	}

	public void setMainImgFolder(String mainImgFolder) {
		this.mainImgFolder = mainImgFolder;
	}

	public String getMainImgLink() {
		return mainImgLink;
	}

	public void setMainImgLink(String mainImgLink) {
		this.mainImgLink = mainImgLink;
	}

	public String getMainAdWord() {
		return mainAdWord;
	}

	public void setMainAdWord(String mainAdWord) {
		this.mainAdWord = mainAdWord;
	}

	public String getInsideImgName() {
		return insideImgName;
	}

	public void setInsideImgName(String insideImgName) {
		this.insideImgName = insideImgName;
	}

	public String getInsideImgFolder() {
		return insideImgFolder;
	}

	public void setInsideImgFolder(String insideImgFolder) {
		this.insideImgFolder = insideImgFolder;
	}

	public String getInsideImgLink() {
		return insideImgLink;
	}

	public void setInsideImgLink(String insideImgLink) {
		this.insideImgLink = insideImgLink;
	}

	public String getInsideAdWord() {
		return insideAdWord;
	}

	public void setInsideAdWord(String insideAdWord) {
		this.insideAdWord = insideAdWord;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public Long getBrandCategoryId() {
		return brandCategoryId;
	}

	public void setBrandCategoryId(Long brandCategoryId) {
		this.brandCategoryId = brandCategoryId;
	}

	public boolean isDelete() {
		return delete;
	}

	public void setDelete(boolean delete) {
		this.delete = delete;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public String getCampaignType() {
		return campaignType;
	}

	public void setCampaignType(String campaignType) {
		this.campaignType = campaignType;
	}
	
}
